@import "base";
@import "media";

// 获取不同分辨率下字体大小
@function font-size__screen($width: 320px) {
  @return 50px * $width/320px;
}
// px转rem
@function ptr($size: 35) {
  @return $size * 1px / font-size__screen(375px) * 1rem;
}
$colorBlack: #555555;
$colorBlue: #06b4fe;
$colorGray: #999999;
$groundBlack: #4d9fee;

body {
  background: #f4f8fb;
}
.home__banner {
  height: ptr(144);
}
a {
  color: white;
  text-decoration: none;
}

// 轮播图
.swiper-container {
  width: 100%;
  height: ptr(144);
}

.swiper-slide {
  text-align: center;
  font-size: 18px;
  background: #fff;

  /* Center slide text vertically */
  display: -webkit-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  -webkit-align-items: center;
  align-items: center;

  img {
    width: 100%;
    height: ptr(144);
  }
}

.swiper-pagination-bullet {
  width: 20px;
  height: 20px;
  text-align: center;
  line-height: 20px;
  font-size: 12px;
  color: #000;
  opacity: 1;
  background: rgba(0, 0, 0, 0.2);
}

.swiper-pagination-bullet-active {
  color: #fff;
  background: #9b9b9b !important;
}

.banner__pagination {
  margin: 0 auto;
  width: 100%;
}
.swiper-pagination-clickable .swiper-pagination-bullet {
  width: ptr(8);
  height: ptr(3);
  background: #d8d8d8;
  margin-right: ptr(8);
}

.banner__pagination span:last-child {
  margin-right: 0 !important;
}
.home__search {
  position: absolute;
  top: ptr(15);
  z-index: 1111;
  width: ptr(325);
  left: 50%;
  margin-left: -2.775rem;
  color: white;
  text-align: center;
  height: ptr(34);
  line-height: ptr(34);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.3);
  i {
    font-size: 20px;
    display: block;
    float: left;
    padding-left: 40%;
  }
  span {
    font-size: 12px;
    float: left;
  }
}
.home__curriculum {
  margin: 0 auto;
  width: ptr(340);
  margin-top: ptr(20);
  .l {
    width: ptr(105);
    height: ptr(136);
    background: #06b4fe;
    border-radius: 4px;
    float: left;
    .img {
      width: ptr(51);
      height: ptr(48);
      margin: 0 auto;
      display: block;
      margin-top: ptr(40);
    }
    span {
      color: white;
      font-size: 14px;
      text-align: center;
      display: block;
      text-align: center;
      padding-top: ptr(14);
    }
  }
  .r {
    float: left;
    width: ptr(220);
    margin-left: ptr(10);
    li {
      width: ptr(105);
      height: ptr(40);
      font-size: 13px;
      color: #555555;
      line-height: ptr(40);
      text-align: center;
      background: white;
      border-radius: 4px;
      float: left;
      margin-bottom: ptr(6);
    }
    li:nth-child(2n) {
      margin-left: ptr(10);
    }
  }
}
.home--wrap {
  margin: 0 auto;
  width: ptr(340);
}
.home__resources {
  margin-top: ptr(8);
  .l {
    position: relative;
    width: ptr(105);
    height: ptr(40);
    background: $colorBlue;
    border-radius: 4px;
    font-size: 14px;
    color: #ffffff;
    float: left;
  }
  span {
    position: absolute;
    left: ptr(34);
    top: ptr(10);
  }
  img {
    width: ptr(30);
    height: ptr(26);
    margin-left: ptr(15);
    margin-top: ptr(7);
  }
  .r {
    float: left;
    margin-left: ptr(9);
    .two {
      li {
        width: ptr(105) !important;
      }
      li:nth-child(2) {
        margin-right: 0 !important;
      }
    }
    li {
      width: ptr(67);
      height: ptr(40);
      font-size: 13px;
      color: #555555;
      line-height: ptr(40);
      text-align: center;
      background: white;
      border-radius: 4px;
      float: left;
      margin-bottom: ptr(6);
      margin-right: ptr(10);
    }
    li:nth-child(3) {
      margin-right: 0 !important;
    }
  }
}
.home__class {
  margin-top: ptr(7);
  .l {
    width: ptr(160);
    height: ptr(50);
    background: #ffffff;
    border-radius: 4px;
    float: left;
    .l {
      width: ptr(31);
      height: ptr(28);
      float: left;
      margin-left: ptr(15);
      margin-top: ptr(10);
    }
    .r__r {
      float: right;
      margin-top: ptr(10);
      padding-right: ptr(15);
      div:nth-child(1) {
        font-size: 14px;
        color: #555555;
        text-align: right;
      }
      div:nth-child(2) {
        font-size: 10px;
        color: #999999;
      }
    }
  }
  .r {
    width: ptr(160);
    height: ptr(50);
    background: #ffffff;
    border-radius: 4px;
    float: right;
    .l {
      width: ptr(31);
      height: ptr(28);
      float: left;
      margin-left: ptr(15);
      margin-top: ptr(10);
    }
    .r__r {
      float: right;
      margin-top: ptr(10);
      padding-right: ptr(15);
      div:nth-child(1) {
        font-size: 14px;
        color: #555555;
        text-align: right;
      }
      div:nth-child(2) {
        font-size: 10px;
        color: #999999;
      }
    }
  }
}
.home__nav {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: #f9f9f9;
  border-top: 1px solid #e0e0e0;
  height: ptr(50);
  .on {
    color: $colorBlue;
  }
  li {
    float: left;
    color: #555555;
    width: 25%;
    text-align: center;
    padding-top: ptr(5);
    i {
      font-size: 25px;
    }
    .text {
      font-size: 10px;
    }
  }
}
.search {
  width: ptr(338);
  height: ptr(35);
  margin: 0 auto;
  padding-top: ptr(20);
  .l {
    float: left;
    padding-top: ptr(10);
    i {
      float: right;
      margin-right: ptr(10);
      font-size: 20px;
      color: $colorBlack;
    }
    .line {
      width: ptr(2);
      height: ptr(17);
      background: #98c0ee;
      float: left;
      margin-left: ptr(15);
      margin-right: ptr(3);
      margin-top: ptr(1);
    }
    width: ptr(293);
    background: white;
    height: ptr(35);
    border-radius: 4px;
  }
  .r {
    float: right;
    color: $colorBlue;
    font-size: 14px;
    height: ptr(35);
    line-height: ptr(35);
  }
}
.curriculum {
  width: 100%;
  .l {
    float: left;
    width: 20%;
    .on {
      background: #f4f8fb;
      position: relative;
    }
    .on::before {
      content: "";
      height: ptr(30);
      width: ptr(3);
      background: $colorBlue;
      position: absolute;
      left: 0;
      top: 0.24rem;
    }
    li {
      width: 100%;
      background: white;
      font-size: 12px;
      color: #555555;
      text-align: center;
      height: ptr(60);
      line-height: ptr(60);
    }
  }
  .r {
    margin-top: ptr(10);
    float: left;
    width: 73%;
    overflow: hidden;
    margin-left: 3%;
    .r__list {
      li {
        clear: both;
        height: ptr(80);
        width: 100%;
        background: #ffffff;
        border: 1px solid #ffffff;
        border-radius: 4px;
        margin-bottom: ptr(15);
        .rl {
          float: left;
          width: ptr(60);
          height: ptr(60);
          margin: ptr(10);
        }
        .rr {
          float: left;
          width: 67%;
          .title {
            font-size: 14px;
            color: #555555;
            margin-top: ptr(10);
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
          }
          .name {
            font-size: 12px;
            color: #999999;
            margin-top: ptr(10);
          }
        }
      }
    }
  }
}

.resources__title {
  margin-left: ptr(10);
  margin-bottom: ptr(15);
  .on {
    color: $colorBlue;
  }
  li {
    float: left;
    font-size: 12px;
    color: #999999;
    margin-right: ptr(28);
  }
  li:last-child {
    margin-right: 0 !important;
  }
}
.toclass__banner {
  img {
    width: 100%;
    height: ptr(144);
  }
}
.toclass__content {
  width: ptr(340);
  margin: 0 auto;
  margin-top: ptr(20);
  .title {
    font-size: 16px;
    color: #555555;
    margin-bottom: ptr(15);
  }
  .list {
    li {
      width: ptr(160);
      margin-right: ptr(15);
      float: left;
      margin-bottom: ptr(10);
      background: white;
      .img {
        position: relative;
        width: ptr(160);
        height: ptr(90);
      }
      i {
        position: absolute;
        left: 50%;
        top: 50%;
        color: white;
        font-size: 28px;
        margin-left: -14px;
        margin-top: -16px;
      }
      img {
        width: ptr(160);
        height: ptr(90);
      }
    }
    li:nth-child(2n) {
      margin-right: 0 !important;
    }
  }
}
.toclass__content {
  .font {
    padding: ptr(6);
  }
  .font__title {
    font-size: 14px;
    color: #555555;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .font__subtitle {
    font-size: 12px;
    color: #999999;
    margin-top: ptr(5);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
}
.dialogue-nav {
  border-bottom: 1px solid #dfdfdf;
  ul {
    width: ptr(168);
    margin: 0 auto;
    font-size: 16px;
    color: #555555;
    height: ptr(50);
    line-height: ptr(50);
  }
  li:nth-child(1) {
    margin-right: ptr(28);
  }
  .on {
    color: $colorBlue;
    position: relative;
  }
  .on::after {
    content: "";
    position: absolute;
    color: $colorBlue;
    background: #64acf0;
    width: ptr(40);
    height: ptr(3);
    left: 0.14rem;
    bottom: 0;
  }
  li {
    float: left;
  }
}
.competition__banner {
  img {
    width: ptr(375);
    height: ptr(144);
  }
}
.competition__wrap {
  background: white;
  padding-top: ptr(17);
}
.competition__sign {
  width: ptr(330);
  margin: 0 auto;
  .l {
    font-size: 16px;
    color: $colorBlack;
    float: left;
  }
  .r {
    float: right;
    color: $colorGray;
    font-size: 12px;
    i {
      font-size: 18px;
    }
  }
  .explain {
    clear: both;
    font-size: 12px;
    color: $colorGray;
    padding-top: ptr(11);
    li {
      padding-bottom: ptr(10);
    }
  }
}
.competition__nav {
  width: ptr(330);
  margin: 0 auto;
  margin-top: ptr(14);
  li {
    float: left;
    width: ptr(150);
    height: ptr(44);
    line-height: ptr(44);
    color: $colorBlack;
    font-size: ptr(14);
    background: white;
    margin-bottom: ptr(12);
    position: relative;
    img {
      margin-left: ptr(24);
      margin-top: ptr(12);
      float: left;
      width: ptr(23);
    }
    span {
      margin-left: ptr(24);
    }
  }
  li::before {
    content: "";
    position: absolute;
    left: 0;
    height: ptr(44);
    width: ptr(3);
    background: red;
  }
  li:nth-child(1)::before {
    background: #4d9fee !important;
  }
  li:nth-child(2)::before {
    background: #ed2526 !important;
  }
  li:nth-child(3)::before {
    background: #6ce7d9 !important;
  }
  li:nth-child(4)::before {
    background: #77ce43 !important;
  }
  li:nth-child(5)::before {
    background: #f98d5e !important;
  }
  li:nth-child(6)::before {
    background: #ffcf56 !important;
  }
  li:nth-child(7)::before {
    background: #77ce43 !important;
  }
  li:nth-child(8)::before {
    background: #9013fe !important;
  }
  li:nth-child(2n) {
    margin-left: ptr(25);
  }
}
.competition__bottom {
  width: ptr(335);
  height: ptr(44);
  line-height: ptr(44);
  text-align: center;
  font-size: 16px;
  color: white;
  border-radius: 4px;
  background: $groundBlack;
  position: fixed;
  left: 50%;
  margin-left: -2.85rem;
  bottom: ptr(20);
}

.year__title {
  position: relative;
  width: 90%;
  margin: 0 auto;
  border-bottom: 1px solid $colorGray;
  padding-top: ptr(33);
  padding-bottom: ptr(12);

  i {
    color: $groundBlack;
    font-size: 20px;
  }
  .title {
    color: $colorBlack;
    font-size: 16px;
  }
}
.year__warp {
  position: relative;
}
.year__warp::before {
  content: "";
  position: absolute;
  width: ptr(3);
  height: ptr(30);
  background: $groundBlack;
  left: 0;
  bottom: 0.1rem;
}
.year__content {
  padding-top: ptr(13);
  line-height: 22px;
  font-size: 12px;
  color: $colorGray;
  width: 90%;
  margin: 0 auto;
  text-indent: 25px;
}
.overyears {
  padding-top: ptr(25);
  width: ptr(335);
  height: ptr(130);
  margin: 0 auto;
  img {
    width: ptr(335);
    height: ptr(130);
  }
}
.signup__wrap {
  width: ptr(335);
  margin: 0 auto;
  background: #f4f8fb;
}
.signup__padding {
  padding: ptr(15);
  padding-bottom: ptr(10);
  background: white;
}
.signup__form {
  background: white;
  width: ptr(335);
  height: ptr(325);
  margin: 0 auto;
  .title {
    text-align: center;
    font-size: 14px;
    color: $colorBlack;
    padding: ptr(12) 0;
  }
  .content {
    width: ptr(305);
    height: ptr(36);
    line-height: ptr(36);
    margin: 0 auto;
    margin-bottom: ptr(15);
    border: 1px solid #eeeeee;
    border-radius: 4px;
    position: relative;
    .icon-sanjiaoxing-down {
      position: absolute;
      right: 0;
      color: $groundBlack;
      font-size: 20px;
    }
    i {
      font-size: 10px;
      color: $colorGray;
      float: left;
      padding-left: ptr(10);
      padding-right: ptr(10);
    }
    span {
      font-size: 12px;
      color: $colorGray;
      float: left;
    }
    select {
      position: relative;
      width: 3.5rem;
      height: ptr(30);
      margin-left: ptr(15);
      border: 0;
      // appearance: none;
      // -moz-appearance: none;
      // -webkit-appearance: none;
    }
    select::-ms-expand {
      display: none;
    }
    input {
      float: left;
      font-size: 12px;
      color: $colorBlack;
      height: ptr(30);
      line-height: ptr(38);
      padding-left: ptr(15);
      width: 3.5rem;
      padding-top: ptr(6);
    }
  }
}
.signup__height {
  height: ptr(15);
}
.signsuccess {
  background: url("../img/cg1.png") no-repeat center center !important;
}
.success {
  width: ptr(220);
  height: ptr(236);
  position: relative;
  left: 50%;
  top: 50%;
  margin-left: -1.875rem;
  margin-top: -1.91rem;
  background: url("../img/cg.png") no-repeat center center;
  font-size: 24px;
  color: #ffffff;
  text-align: center;
  letter-spacing: 2.02px;
  padding-top: ptr(140);
  span {
  }
  .close {
    font-size: 14px;
    color: #555555;
    position: absolute;
    width: 100%;
    padding-top: ptr(74);
  }
}
.information {
  padding-top: ptr(25);
  padding-left: ptr(20);
  .name {
    font-size: 16px;
    color: $colorBlack;
    padding-bottom: ptr(10);
  }
  .activity {
    font-size: 12px;
    color: $colorGray;
  }
}
.information__bottom {
  width: ptr(336);
  height: ptr(47);
  margin: 0 auto;
  position: fixed;
  bottom: ptr(20);
  left: 50%;
  margin-left: -2.865rem;
  .l {
    float: left;
    width: ptr(160);
    height: ptr(44);
    text-align: center;
    line-height: ptr(44);
    font-size: 16px;
    color: #ffffff;
    background: #ffb03f;
    border-radius: 4px;
  }
  .r {
    float: right;
    width: ptr(160);
    height: ptr(44);
    text-align: center;
    line-height: ptr(44);
    font-size: 16px;
    color: #ffffff;
    background: #4d9fee;
    border-radius: 4px;
  }
}
.mask {
  background: black;
  position: absolute;
  width: 100%;
  height: ptr(144);
  opacity: 0.3;
  z-index: 11;
}

.dialog-success {
  position: absolute;
  top: 50%;
  left: 50%;
  width: ptr(220);
  height: ptr(236);
  margin-left: -1.875rem;
  margin-top: -2rem;
  background: url("../img/cg.png") no-repeat center center;
}
.modify__dialog--success {
  position: absolute;
  top: 50%;
  left: 50%;
  width: ptr(220);
  height: ptr(236);
  margin-left: -1.875rem;
  margin-top: -2rem;
  background: url("../img/cg1.png") no-repeat center center;
}
